package com.module.codeManage;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.module.codeManage.setcode.manager.FirstCodeManager;
import com.module.codeManage.setcode.vo.FirstCode;
import com.module.codeBind.vo.BatchCode;



public class codeManagerService {
	
	/**
	 * 根据码,查询码相关信息
	 * @param code
	 * @return
	 * @throws Exception
	 */
	  public FirstCode checkCode(String code)throws Exception{
		  FirstCode fcode = new FirstCode();
		  FirstCodeManager firstCodeManager = FirstCodeManager.getInstance();
		  fcode = firstCodeManager.checkCode(code);
		  return fcode;
	  }
	  /**
		 * 验证批次
		 * @param resultMap
		 * @param inMap
		 */
		public static Map verifyBatchCode(BatchCode batchCode) {

			Map<String,Object> rmap = new HashMap<String,Object>(); 
			FirstCodeManager firstCodeManager = FirstCodeManager.getInstance();
			rmap = firstCodeManager.checkTag(batchCode);
			return rmap;
		}

}
